
// 入口文件
import $ from "jquery";
import Vue from 'vue';
import app from './App.vue'

import store from './js/store.js'

// 导入路由包
import VueRouter from "vue-router"
import router from "./router.js";
Vue.use(VueRouter)// 挂载vuex

import './css/reset.css';//公共样式
import "./js/Tdrag.js";


// 导入vue-resouce和安装vue-resouce
import VueResource from "vue-resource";
Vue.use(VueResource)

// pc端vue的组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import 'element-ui/lib/theme-default/index.css'
Vue.use(ElementUI);
//使用echarts


// Vue.filter('cutDot',function(dataStr){
//     var arr = dataStr.split('/');
//     var arr1 = arr[arr.length-1].split('.');    
//     return arr1[0]
// });
import filters from "./js/filter.js";
for(let key in filters){
    Vue.filter(key,filters[key])
}



new Vue({
    el:"#app",
    render:function(creat){
        return creat(app)
    },
    store,
    router
})
